#ifndef _STORAGE_H_
#define _STORAGE_H_

#include "resource.h"
#include "dataelement.h"

class Storage : public Resource {
	private:
	DataElement **datas;
	int numberOfDatas;
public:
	Storage(const char *name);
	void addData(const char *name, long double size, int type);
	DataElement *getDataElementByIndex(int index);
	DataElement *getDataElementByName(const char *name);
	DataElement *existDataElement(const char *name);
	int getNumberOfDatas();
	~Storage();
};

#endif //_STORAGE_H_
